import { defineStore } from 'pinia'
import { IchipletInterface } from '../const/ichipletInterface'
import { ImodeInterface } from '../const/imodeInterface'
export const indexStore = defineStore("index", {
    state() {
        const chipletData: Array<IchipletInterface> =
            [
                {
                    value: 0,
                    label: "ws2811"
                },
                {
                    value: 1,
                    label: "tm1914"
                }
            ]
            const modeData :Array<ImodeInterface>=[{
                label:"普通模式",
                value:0
                },{
                    label:"红",
                    value:1
                },{
                    label:"绿",
                    value:2
                },{
                    label:"蓝",
                    value:3
                },
                {
                    label:"逐个点亮",
                    value:4
                }
                ,{
                    label:"颜色渐变",
                    value:5
                }]

        return {
            chipletList: chipletData,
            modeList : modeData,
     

        }
    },
    getters: {

    },
    actions: {


    }

})